package cc.comac.mom.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipPatrolCheckWorkOrder;
import cc.comac.mom.bean.EquipPatrolCheckWorkOrderBean;
import cc.comac.mom.util.ResultBean;

@FeignClient(name = "mom-equipment-mgmt-srv")
public interface EquipPatrolCheckWorkOrderService {
	//查询
	@RequestMapping(value = "/p/cs/EquipPatrolCheckWorkOrderService/selectByFields",method = RequestMethod.POST)
	public ResultBean selectByFields(@RequestBody EquipPatrolCheckWorkOrderBean obj); 
	
	//修改执行用时
	@RequestMapping(value = "/p/cs/EquipPatrolCheckWorkOrderService/updateExecuteTime",method = RequestMethod.POST)
	public ResultBean updateExecuteTime(@RequestBody EquipPatrolCheckWorkOrder obj);
	
	//批量删除巡检计划工单
	@RequestMapping(value = "/p/cs/EquipPatrolCheckWorkOrderService/deleteBatch",method = RequestMethod.POST)
	public ResultBean deleteBatch(@RequestBody List<Long> ids);
	
	//开始执行
	@RequestMapping(value = "/p/cs/EquipPatrolCheckWorkOrderService/planStartExecute",method = RequestMethod.POST)
	public ResultBean planStartExecute(@RequestBody EquipPatrolCheckWorkOrder obj);
}
